Identification

The first group of commands discussed here are those used to identify your class or package file.


\begin{decl}
\vert\NeedsTeXFormat\vert \arg{format-name} \oarg{release-date}
\end{decl}
This command tells TEX that this file should be processed using a format with name format-name. You can use the optional argument release-date to further specify the earliest release date of the format that is needed. When the release date of the format is older than the one specified a warning will be generated. The standard format-name is LaTeX2e. The date, if present, must be in the form YYYY/MM/DD.

Example:

   \NeedsTeXFormat{LaTeX2e}[1994/06/01]


\begin{decl}
\vert\ProvidesClass\vert \arg{class-name} \oarg{release-info} \\
\vert\ProvidesPackage\vert \arg{package-name} \oarg{release-info}
\end{decl}
This declares that the current file contains the definitions for the document class class-name or package package-name.

The optional release-info, if used, must contain:

The above syntax should be followed exactly so that this information can be used by || or | (for classes) or |or | (for packages) to test that the release is not too old.

The whole of this release-info information is displayed by || and should therefore not be too long.

Example:

   \ProvidesClass{article}[1994/06/01 v1.0 Standard LaTeX class]
   \ProvidesPackage{ifthen}[1994/06/01 v1.0 Standard LaTeX package]


\begin{decl}
\vert\ProvidesFile\vert \arg{file-name} \oarg{release-info}
\end{decl}
This is similar to the two previous commands except that here the full filename, including the extension, must be given. It is used for declaring any files other than main class and package files.

Example:

   \ProvidesFile{T1enc.def}[1994/06/01 v1.0 Standard LaTeX file]